package com.libinshen.wxpay.videoAliBaBa.entity.easyPoi;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.libinshen.wxpay.common.entity.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 讲师
 * </p>
 *
 * @author Helen
 * @since 2020-04-01
 */
@Data
@TableName("t_teacher")
public class TeacherEasyPoi extends BaseEntity {

    @Excel(name = "主键", orderNum = "0", width = 15)
    private String id;

    @Excel(name = "姓名", orderNum = "1", width = 15)
    private String name;

    @Excel(name = "简介", orderNum = "2", width = 15)
    private String intro;

    @Excel(name = "职业", orderNum = "3", width = 15)
    private String career;

    @Excel(name = "级别", orderNum = "4", width = 15)
    private Integer level;

    //todo 如果想把图片读入excel中如何处理
    @Excel(name = "头像", orderNum = "5", width = 15)
    private String avatar;

    @Excel(name = "排序", orderNum = "6", width = 15)
    private Integer sort;

    @Excel(name = "性别", orderNum = "7", width = 15, replace = {"男_0", "女_1"})
    private Integer sec;

    @Excel(name = "入驻时间", orderNum = "8", width = 15, databaseFormat = "yyyyMMdd", format = "yyyy-MM-dd")
    private Date joinDate;

    @Excel(name = "创建时间", orderNum = "9", width = 15, databaseFormat = "yyyyMMddHHmmss", format = "yyyy-MM-dd HH:mm:ss")
    private String createTime;

    @Excel(name = "更新时间", orderNum = "10", width = 15, databaseFormat = "yyyyMMddHHmmss", format = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;

    @Excel(name = "是否删除", orderNum = "7", width = 15, replace = {"已刪除_0", "未删除_1"})
    private Integer isDeleted;

}
